package com.base;

/**
 * 全局常量定义
 * 2013-7-9 下午2:47:10
 *
 * @author hubery.niejinzhen
 */
public interface GlobaConstants {

    // session中的用户名关键字定义，需多处使用，故作为常量定义之

    String ACTION_RESULT = "actionResult";        //

    String ACTION_RESULT_DATA = "actionResult.data";

    String ASYNCHRONOUS = "asynchronous";   //异步

    String CLOSED = "closed";

    String CONTENT_TYPE = "contentType";

    String CONTENT_TYPE_HTML = "text/html";

    String CONTENT_TYPE_JPG = "image/jpeg";

    String CONTENT_TYPE_JSON = "application/json";

    String CREATE = "create";               // 创建

    String DELETE = "delete";               // 删除

    // 定义全局的加密算法
    String ENCRYPTION_ALGORITHM = "SHA-256";

    String ERROR = "error";                // 错误

    String INPUT = "input";                // input

    String JSON = "json";

    String LOGIN_USER = "loginUser";         //当前登录的用户

    String LOGIN_USER_PERMISSION = "loginUserPermission";         //当前登录用户的所有权限

    String MESSAGE = "message";            // 消息

    String MSG = "msg";

    String OK = "ok";                // ok

    String OPEN = "open";

    String QUERY = "query";                 // 查询

    String READ = "read";                   // 读取

    // 定义初始化外协用户角色名称
    String ROLE_OUTSIDE_ORGANIZER = "外部单位管理员";

    String ROOT = "root";                // ROOT

    String SAVE = "save";                   // 保存

    String SOU = "saveOrUpdate";        // 保存或者更新

    String SUCCESS = "success";            // 成功

    String UPDATE = "update";               // 更新

    String USER = "user";

    String USER_NAME = "userName";            // 用户名

}
